<?PHP




$media=new music;
$media->get_playlist();
$headers[]='Id';
$headers[]='Name';
$headers[]='Owner';
$headers[]='Category';
$headers[]='Action';
$show[]='id';
$show[]='name';
$show[]='owner';
$show[]='category';

//print_r($media->data);
//fix this for sql clean get
foreach($media->data as $x)
{
	$x[0]=$x['id'];
	$y[]=$x;
	
	
}
$links['Edit']='?q=m/music/d_playlist.php&cmd=edit&id=';
$links['Songs']='?q=m/music/d_playlist_manager.php&id=';
$links['Queue']='?q=m/music/d_playlist_queue.php&id=';
printformheader('Playlists','Content Listing');

if(!empty($y))
{

	p_table($headers,$y,$links,"class='tablesorter'",$show,$ajax,FALSE);

} 
printformfooter("Add Playlist","?q=m/music/d_playlist.php&cmd=add",NULL,NULL,NULL,NULL);
?>